﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace DataEntity
{
    class RRT : INotifyPropertyChanged
    {
        #region PropertyChanged事件
        public event PropertyChangedEventHandler PropertyChanged;

        public void OnPropertyChanged(string PropName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(PropName));
            }
        }
        #endregion

        private float _Volume;
        public float Volume
        {
            get { return _Volume; }
            set { _Volume = value; }
        }

        private float _Height;
        public float Height
        {
            get { return _Height; }
            set { _Height = value; }
        }

        private string _Location;
        public string Location
        {
            get { return _Location; }
            set { _Location = value; }
        }

        private float _YSemi;
        public float YSemi
        {
            get { return _YSemi; }
            set { _YSemi = value; }
        }

        private float _XSemi;
        public float XSemi
        {
            get { return _XSemi; }
            set { _XSemi = value; }
        }

        private List<ChiShuiEntity> _ChiShuiEntitys;
        public List<ChiShuiEntity> ChiShuiEntitys
        {
            get { return _ChiShuiEntitys; }
            set { _ChiShuiEntitys = value; }
        }

        public string Text
        {
            get { return ToString(); }
        }

        public override string ToString()
        {
            return "排水体积:" + Volume + ";船舶重心高度:"
                + Height + ";船舶重心纵向位置:" + Location + ";船舶纵向惯性半径:" + YSemi + ";船舶横向惯性半径:" + XSemi;
        }
    }
}
